package org.bt.rpc.api.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 远程过程服务调用结构类
 *
 * @author tongw
 * @date 2021/8/18
 */
@Data
@NoArgsConstructor
public class Result<T>  implements Serializable {
    @ApiModelProperty(value = "错误对象")
    private Error error;
    @ApiModelProperty(value = "数据对象")
    private T data;
}
